import 'package:flutter/material.dart';
import 'package:flutter_layout/pages/main/main_model.dart';
import 'package:get/get.dart';
import 'main_controller.dart';

class MainPage extends GetView<MainController> {

  final MainModel model = Get.find<MainController>().model;

  MainPage({Key? key}) : super(key: key);
  



  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: GetBuilder(builder: (context) {
        return InkWell(
          // child: Text("data=${controller.model.count}"),
          child: const Text("data="),
          onTap: () {
            controller.increment();
            controller.update();
          },
        );
      }),
    );
  }
}
